/**
 *
 */
/**
 *
 */
import core.designpattern.mvc.*; 
import rocknrollracing.gameelement.*;

import flash.geom.*;
import util.*;
 
class rocknrollracing.gameelement.GameElementView  extends View 
{
	
	public function GameElementView(canvas:MovieClip, model:Model)
	{
		super(canvas, model);
	}
	
	public function createMovieClip(canvas:MovieClip):Void
	{
		graphic = canvas.attachMovie(model.getId(), model.getId() + canvas.getNextHighestDepth(),canvas.getNextHighestDepth());
		GameElementModel(model).setGraphic(graphic);
	}
	
	public function updateScreen():Void
	{	
		graphic._x = model.getPosition().x;
		graphic._y = model.getPosition().y;
	}
}